﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.HumanAffairs.Entrys
{
    public interface IEntryRepository
    {
        /// <summary>
        /// 入职办理——查询分页显示
        /// </summary>
        /// <param name="EntryName"></param>
        /// <param name="DeptId"></param>
        /// <param name="PositionId"></param>
        /// <param name="EntryTime"></param>
        /// <param name="State"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<EntryDto>> GetEntryPageShow(string EntryName, int DeptId, int PositionId, DateTime? EntryTime, int State, int pageindex = 1, int pagesize = 3);
        /// <summary>
        /// 入职办理——逻辑删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteEntry(int id);
        /// <summary>
        /// 入职办理——批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteBatchEntry(string ids);
        /// <summary>
        /// 入职办理——编辑
        /// </summary>
        /// <param name="entryDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateEntry(EntryDto entryDto);
        /// <summary>
        /// 入职办理——添加
        /// </summary>
        /// <param name="entryDto"></param>
        /// <returns></returns>
        Task<int> PostAddEntry(EntryDto entryDto);
    }
}
